<html>
<head>
<title>Edit User</title>
</head>
<body>
	<?php echo validation_errors(); ?>
	<form method="POST">
	<?php foreach($details as $detail) {
		echo form_open('edit/$detail[id]');
		echo "Username: $detail[username]<br>
	First Name <input type='text' name='fname' value='$detail[fname]'><br>
	Middle Name <input type='text' name='mname' value='$detail[mname]'><br>
	Last Name <input type='text' name='lname' value='$detail[lname]' ><br>
	Address <input type='text' name='address' value='$detail[address]' ><br>
	<input type='submit' value='Update &rarr;' >";
	}
	?>
	</form>
</body>
<?php echo form_close(); ?>
</html>
